package com.freewater.springboot.demo.conversion.databinder;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class PersonForm {

    @NotNull
    @Length(min = 1, max = 64)
    private String name;

    @Min(0)
    private int age;
}
